﻿@model PopularProductTagsModel
@using Nop.Web.Models.Catalog;
@if (Model.Tags.Count > 0)
{
    <nav class="sidebar light">
        <ul>
            <li class="title">@T("Products.Tags.Popular")</li>
            <li class="stick">
                <a class="dropdown-toggle" href="#"><i class="icon-tree-view"></i>@T("Products.Tags.Popular")</a>
                <ul class="dropdown-menu" data-role="dropdown">
                        @foreach (var item in Model.Tags)
                        {
                            <li><a href="@Url.RouteUrl("ProductsByTag", new { productTagId = item.Id, SeName = item.SeName })" style="font-size:@(Model.GetFontSize(item))%;">@item.Name</a></li>
                        }
                </ul>
                @if (Model.TotalTags > Model.Tags.Count)
                {
                    <div class="view-all">
                        <a href="@Url.RouteUrl("ProductTagsAll")">@T("Products.Tags.Popular.ViewAll")</a>
                    </div>
                }
            </li>
        </ul>
    </nav>
}